

import Layout from '@/layout'

const workRouter = {
  path: '/work',
  component: Layout,
  redirect: '/work/index',
  name: 'Work',
  meta: {
    title: '零活管理',
    icon: 'clipboard',
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/work/index'),
      name: 'WorkIndex',
      meta: { title: '零活库', icon: '' }
    },
    {
      path: 'my',
      component: () => import('@/views/work/my'),
      name: 'WorkMy',
      meta: { title: '我的零活', icon: 'clipboard', }
    }
  ]
}

export default workRouter  //collate
